package com.zqxq.auth.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zqxq.auth.entity.bo.RoleMenuFuncBO;
import com.zqxq.auth.entity.po.Func;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
  * 功能表 Mapper 接口
 * </p>
 *
 * @author 江枫
 * @since 2018-01-08
 */
@Component
public interface FuncMapper extends BaseMapper<Func> {

    int getFuncNumByIds(@Param("funcIds") String funcIds, @Param("role_id") Long role_id);

    List<RoleMenuFuncBO> getUserRoleFunc(@Param("role_id") Long role_id);

    List<Func> getFuncListByRoleId(@Param("role_id") Long role_id);
}